<style>
.content-group {background:#fff;border-radius: 0.5rem;margin-bottom:0.39rem}
.merchname {display:none}
.jylabel-red.active,.jylabel-red:focus,.jylabel-red:hover,.jylabel-red[href]:focus,.jylabel-red[href]:hover {
	background-color:#4fcb3b;color:#fff;
}
.jylabel-red.active,.jylabel-red:focus,.jylabel-red:hover,.jylabel-red[href]:focus,.jylabel-red[href]:hover {
	background-color:#4fcb3b;
	color:#fff;
	border: 1px solid #fff;
}
.fui-goods-item .detail .price .text {
    color: #4fcb3b;
}
.fui-tab-scroll .item a {color:#fff;font-weight:400}
.fui-tab-scroll .item.on,.fui-tab-scroll .item.on a{color:#fff;}
.fui-tab-scroll .item.on:before {background:linear-gradient(to right,rgba(255,255,255,1),rgba(255,255,255,0));}
</style>
<div ng-include="sys_html('common/_header','','','jy_weishop')"></div>
<div class="fui-page fui-page-current page-goods-list">
<div class='fui-content' style="top:0">
	<div class="topbg" style="position: relative;text-align:center;width:100%;background: url('../addons/jy_weishopfarmer/resource/images/topbg.jpg') no-repeat 50%;background-size: cover;">
		<div style="padding-top:1.5rem"><img style="width:5rem" ng-src="{{tomedia(pagedata.pluginset.logo) || '../addons/jy_weishopfarmer/resource/images/logo.png'}}"/></div>
		<div style="padding-top:0"><img style="width:8rem" ng-src="{{tomedia(pagedata.pluginset.logodesc) || '../addons/jy_weishopfarmer/resource/images/logodesc.png'}}"/></div>
		<i onclick="$('#showsharecover').modal();" class="icon icon-fenxiang1" style="position:absolute;right:0.8rem;top:2.5rem;font-size:1rem;color:#fff"></i>
		<div class="fui-tab-scroll" ng-if="pagedata.p_group.length>0" style="">
			<div ng-class="{'item':1,'on':pagedata.params.pid==0}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.pid=0;tool.get_list('jy_weishop/goods.index/getlist/order=ishot',true)">首页</a></div>
			<div ng-repeat="tab in pagedata.p_group" style="height:2rem;line-height:1.5rem" ng-class="{'item':1,'on':pagedata.params.pid==tab.id}"><a href="javascript:;" ng-click="pagedata.params.pid=tab.id;pagedata.groupkey=$index;tool.get_list('jy_weishop/goods.index/getlist/pcate='+tab.id,true)">{{tab.title}}</a></div>
			<div ng-if="!pagedata.p_group || pagedata.p_group.length<1" ng-class="{'item':1,'on':pagedata.params.pid==-1}" style="height:2rem;line-height:1.5rem"><a href="javascript:;" ng-click="pagedata.params.pid=-1;pagedata.groupkey=$index;tool.get_list('jy_weishop/goods.index/getlist/',true)">其他商品</a></div>
		</div>
	</div>
	<div style="padding:0.3rem 0.5rem">
		<div ng-if="pagedata.params.pid==0" class="content-group">
		<div class="fui-list-group merchgroup" style="margin-top:0">
				<div class="fui-list jump">
					<div class="fui-list-media">
						<img class="round" style="border-radius: 50%;" ng-src="{{tomedia(pagedata.pluginset.storelogo) || '../addons/jy_weishopfarmer/resource/images/storelogo.jpg'}}">
					</div>
					<div class="fui-list-inner" style="border-right: 2px solid #efefef;">
						<div class="title">{{pagedata.store.title}}{{pagedata.pluginset.title || '农夫商城'}}</div>
						<div class="subtitle">{{pagedata.pluginset.title || '农夫溯源商城，新鲜看得见'}}</div>
					</div>
				   <div class="fui-list-media" style="width:6rem;text-align:center;padding-left:0.3rem;margin-right:0">
						<div class="fui-list-inner">
							<div class="num bold" style="font-size:0.8rem;color:#31bdbc">{{pagedata.store.members || '0'}}</div>
							<div class="subtitle">粉丝数</div>
					   </div>
					   <div class="fui-list-inner">
							<div class="num bold" style="font-size:0.8rem;color:#da7b5f">{{pagedata.store.salenum || '0'}}</div>
							<div class="subtitle">购买指数</div>
					   </div>
				   </div>
				</div>   
		</div>
		</div>
		<div class="content-group">
			<div class="fui-searchbar bar" style="z-index: 0;">
				<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:#fff">
						<div style="position: relative;left:0;top:0;">
							<div class="search-input" style="">
								<i id="searchsub" class="icon icon-sousuo1"  ng-click="tool.get_list('jy_weishop/goods.index/getlist/',true)"></i>
								<input type="search" placeholder="搜索商品" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.6rem;background:#f9f9f9;border-radius: 1rem;" />
							</div>
						</div>
				</div>
			</div>
		</div>
		<div ng-include="sys_html('shop/_goods_you','','','jy_weishop')"></div>
	</div>
</div>
</div>
<div ng-include="sys_html('common/_share','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_menu','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_footer','','','jy_weishop')"></div>
<div ng-include="sys_html('common/_coupon',true)"></div>
<div ng-include="sys_html('common/_h5game',true)"></div>
<div ng-include="sys_html('common/_gotop',true)"></div>
<script>
scope.pagedata.getarea=function(pcd){
	scope.post_json('jy_weishopfarmer/index/getarea/',{'pcd':pcd},function(res){
					//console.log(res)
					scope.sharedata.title = res.sharedata.title
					scope.sharedata.link = res.sharedata.link
					scope.sharedata.desc = res.sharedata.desc
					scope.sharedata.imgUrl = res.sharedata.imgUrl
					scope.pagedata.store =res.store;
					scope.tool.get_list('jy_weishop/goods.index/getlist/',true);
					scope.$evalAsync();	
				
	});
}
if((!scope.pagedata.pcd && !scope.pagedata.pcd.city) || !scope.pagedata.area_code){
	window.scope.location(function(re){
		//scope.message(re.addressComponents.district,'error');
		scope.pagedata.getarea(re.addressComponents);
		console.log(re.addressComponents);
	});
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>